﻿using System;
using UnityDemo.DataSource.NorthwindService;

namespace UnityDemo.DataSource
{
    public static class NorthwindServieInstance
    {
        private static NorthwindEntities _context;

        public static NorthwindEntities Context
        {
            get { return _context; }
            set { _context = value; }
        }

        public static void Initialize()
        {
            if (_context == null)
                _context = new NorthwindEntities(new Uri("http://services.odata.org/Northwind/Northwind.svc/"));
        }
    }
}